package com.zhang.responsibility;

public class Client {
    public static void main(String[] args) {
        LeaveRequest leaveRequest1 = new LeaveRequest("小敏师傅",1,"送到成都市地方");
        LeaveRequest leaveRequest2 = new LeaveRequest("小敏师傅",2,"送到成都市地方");
        LeaveRequest leaveRequest3 = new LeaveRequest("小敏师傅",5,"送到成都市地方");

        GroupLeader groupLeader = new GroupLeader();
        ManagerLeader managerLeader = new ManagerLeader();
        GeneralManager generalManager = new GeneralManager();

        groupLeader.setNextHandler(managerLeader);
        managerLeader.setNextHandler(generalManager);

        //提交请假申请
        groupLeader.submit(leaveRequest1);
        groupLeader.submit(leaveRequest2);
        groupLeader.submit(leaveRequest3);
    }
}
